<template>
	<view class="content">
		<view class="main">
			<navgit :navigationMsg="navigationMsg" style="z-index: 2;"></navgit>
			<view class="postion_dw">
				
			</view>
			<view class="kfs_top" @click="indexs">
				<view class="kfs_top_zuo">
					<p style="font-size: 40rpx;margin-top: 80rpx;margin-left: 30rpx;">Hi~</p>
					<p style="font-size: 40rpx;margin-left: 30rpx;">有什么可以帮到您！</p>
				</view>
				<view class="kfs_top_you">
					<image src="/static/蒙版组 30.png" mode="" style="width: 100%;height: 100%;"></image>
				</view>
			</view>
			<view class="kfs_dhs">
				<view class="kfs_dhs_left">
					<image class="imgs" src="/static/电话.png" mode="" style="width: 100rpx;height: 100rpx;margin: 0 auto;margin-top: 45rpx;margin-left: 50rpx;"></image>
				</view>
				<view class="kfs_dhs_right">
					<p style="font-size: 33rpx;font-weight: bold;line-height: 80rpx;margin-top: 15rpx;">平台客服电话 400-0000-000</p>
					<p style="color: #727979;line-height: 40rpx;">工作时间：9:00-22:00</p>
					<p style="color: #727979;line-height: 40rpx;">客服高峰期可能遇忙，请耐心等待</p>
				</view>
			</view>
			<view class="kfs_dhs">
				<view class="kfs_dhs_left">
					<image class="imgs" src="/static/客服.png" mode="" style="width: 100rpx;height: 100rpx;margin: 0 auto;margin-top: 45rpx;margin-left: 50rpx;"></image>
				</view>
				<view class="kfs_dhs_right">
					<p style="font-size: 33rpx;font-weight: bold;line-height: 80rpx;margin-top: 15rpx;">在线客服</p>
					<p style="color: #727979;line-height: 40rpx;">工作时间：9:00-22:00</p>
					<p style="color: #727979;line-height: 40rpx;">客服1对1服务</p>
				</view>
			</view>
			<view class="tabtops">
				
			</view>
			<view class="tab">
				<view class="tab-item" v-for="(item,index) in tabList" :key="index" @click="changeTab(item,index)">
					<view :class="tabActiveIndex==index?'text activeText':'text'">
						{{item.text}}
					</view>
					<view :class="tabActiveIndex==index?'icon activeIcon':'icon'"></view>
				</view>
			</view>
			<view class="lists_btm" v-for="(item,index) in datas" :key="index" @click="taos(item.id)">
				<view class="lists_btm_zuo">
					<p>{{item.title}}</p>
				</view>
				<view class="lists_btm_you">
					<image src="/static/前进.png" mode="" style="width: 45rpx;height: 45rpx;margin-top: 27rpx;margin-left: 50rpx;"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		Collent,
		Details,
		Yzas,
		Swiper,
		Kewords,
		Brand,
		Page,
		Update,
		Issue,
		Logins,
		Login,
		Check,
		User,
		Setting,
		Classify,
		Search,
		
	} from "../../../api/api.js"
	import navgit from "../../../common/navgats/navgats.vue"
	export default {
		data() {
			return {
				navigationMsg: {
					title: "客服中心",
				},
				listbtms:[
					{
						title:"关于下单后商品发货时效的问题"
					},
					{
						title:"关于物流及运费问题"
					},
					{
						title:"订单到期后商品如何归还?"
					},
					{
						title:"可以提前归还吗?需要赔付违约金吗?"
					},
					{
						title:"关于租期计算问题"
					},
					{
						title:"订单如何续租?"
					},
					{
						title:"怎么开发票?"
					}
				],
				tabList: [{
					id: 1,
					text: "常见问题"
				}, {
					id: 2,
					text: "支付问题"
				}, {
					id: 3,
					text: "设备维修"
				}, {
					id: 4,
					text: "租赁保障"
				}],
				tabActiveIndex: 0,
				datas:[]
			}
		},
		components:{
		navgit
		},
		onShow() {
			this.changs()
		},
		methods: {
			async changs(){
				let res=await Issue()
				console.log(res)
				this.datas=res.data.data
			},
			taos(ids){
				uni.navigateTo({
					url:`/pages/mys/kefus/xiangqingyes/xiangqingyes?id=${ids}`
				})
			},
			changeTab(item, index) {
				this.tabActiveIndex = index
			}
		}
	}
</script>

<style lang="scss" scoped>
	*{
		font-size: 3vw;
	}
.content{
		width: 100vw;
		height: 100vh;
		/* position: absolute; */
		background-color: #F9F9F9;
		overflow-y: auto;
		
	}
	.main{
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		
	}
	.postion_dw{
		width: 100vw;
		height: 50vh;
		position: absolute;
		top: 0;
		background: linear-gradient(to bottom, #FCE847,#FCD748, #F9F9F9);
		z-index: 0;
	}
	.kfs_top{
		width: 90%;
		height: 200rpx;
		z-index: 2;
		display: flex;
	}
	.kfs_top_zuo{
		width: 60%;
		height: 100%;
	}
	.kfs_top_you{
		width: 40%;
		height: 100%;
	}
	.kfs_dhs{
		width: 90%;
		height: 200rpx;
		background-color: #ffffff;
		border-radius: 20rpx;
		margin-top: 20rpx;
		display: flex;
		z-index: 2;
	}
	.kfs_dhs_left{
		width: 30%;
		height: 100%;
	}
	.kfs_dhs_right{
		width: 70%;
		height: 100%;
	}
	.tabtops{
		width: 95%;
		height: 50rpx;
		border-radius: 20rpx 20rpx 0  0 ;
		background-color: #ffffff;
		margin-top: 20rpx;
	}
	.tab {
		width: 95%;
		height: 80rpx;
		/* margin-top: 30rpx; */
		display: flex;
		justify-content: space-between;
		background: #ffffff;
		border-radius: 10rpx;
		.tab-item {
			width: 150rpx;
			height: 100%;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: space-between;
	
			.text {
				font-size: 28rpx;
				color: #4b4b4b;
				font-weight: bold;
			}
	
			.activeText {
				color: black;
				font-weight: bold;
				font-size: 32rpx;
			}
	
			.icon {
				width: 50rpx;
				height: 20rpx;
			}
	
			.activeIcon {
				background-image: url("/static/index/tabActive.png");
				background-size: cover;
			}
		}
	}
	.lists_btm{
		width: 95%;
		height: 100rpx;
		background-color: #ffffff;
		display: flex;
	}
	.lists_btm_zuo{
		width: 80%;
		height: 100%;
		
		line-height: 100rpx;
	}
	.lists_btm_zuo p{
		font-size: 30rpx;
		margin-left: 20rpx;
	}
	.lists_btm_you{
		width: 20%;
		height: 100%;
	}
</style>
